﻿using System;

public class Photon
{
    public Vector3 position;
    public LightIntensity energy;
    public Vector3 direction;//znormalizowany wektor od aktualnej do poprzedniej pozycji fotonu
    public int sourceId;
    public int flag;
    public float d;
    public Photon()
    {
        this.position = new Vector3(0, 0, 0);
        this.energy = new LightIntensity();
        this.direction = new Vector3(0, 0, 1);
        this.sourceId = 0;
        this.flag = 0;
    }
	public Photon(Vector3 position, LightIntensity energy, Vector3 direction, int sourceId)
	{
        this.position = position;
        this.energy = energy;
        this.direction = direction;
        this.sourceId = sourceId;
        this.flag = 0;
	}
    public Photon(LightIntensity energy, int sourceId)
    {
        this.position = new Vector3(0,0,0);
        this.energy = energy;
        this.direction = new Vector3(0,0,1);
        this.sourceId = sourceId;
        this.flag = 0;
    }
    public Photon(Vector3 position, LightIntensity energy, Vector3 direction, int sourceId, int flag)
    {
        this.position = position;
        this.energy = energy;
        this.direction = direction;
        this.sourceId = sourceId;
        this.flag = flag;
    }
}
